package com.baizhi.service;

import com.baizhi.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductService {
    int addProduct(Product p);
    int deleteOneProduct(Integer pid);
    int deleteAnyProduct(Integer[] pids);
    int updateProduct(Product p);
    Product selectById(Integer pid);
    List<Product> selectProductByCondition(String pname, Double price,
                                           Integer pageNum, Integer pageSize);
    int totalProduct(String pname,  Double price);
}
